package com.syh.jn.scm.domain.supplier.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.base.downstream.Downstream;

public class DownstreamEvent extends DomainEvent<Downstream> {

  public static final String DOWNSTREAM_CREATED = "downstreamCreatedEvent";
  public static DownstreamEvent buildDownstreamCreatedEvent(Object[] values){
    DownstreamEvent downstreamEvent = new DownstreamEvent();
    downstreamEvent.eventName = DOWNSTREAM_CREATED;
    downstreamEvent.values = values;
    return downstreamEvent;
  }

  public static final String DOWNSTREAM_DELETED = "downstreamDeletedEvent";
  public static DownstreamEvent buildDownstreamDeletedEvent(Object[] values){
    DownstreamEvent downstreamEvent = new DownstreamEvent();
    downstreamEvent.eventName = DOWNSTREAM_DELETED;
    downstreamEvent.values = values;
    return downstreamEvent;
  }
}
